<%--
  Created by IntelliJ IDEA.
  User: 86187
  Date: 2021/10/21
  Time: 10:51
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="resource/css/bootstrap.css">
    <script src="resource/js/jquery-3.2.1.js"></script>
    <script src="resource/js/bootstrap.js"></script>
    <script src="resource/My97DatePicker/WdatePicker.js"></script>
    <title>列表</title>
<script>
    function goPage(pageNum){
        $("#nav-tabContent").load("list?pageNum="+pageNum+"&"+$("#f1").serialize());
    }
    function toAdd(){
        $("#nav-tabContent").load("toAdd");
    }
</script>
</head>
<body>
<span>欢迎${username}登录</span><br>
<form action="/list" method="post" id="f1">
    订单编号:<input type="text" name="orderId" value="${vo.orderId}">
    <select name="dtype">
        <option value="">--请选择--</option>
        <option value="1" ${dtype==1?"selected":""}>下单时间</option>
    </select>
    <input type="date" name="date1" value="<fmt:formatDate value="${vo.date1}" pattern="yyyy-MM-dd"></fmt:formatDate>">至
    <input type="date" name="date2" value="<fmt:formatDate value="${vo.date2}" pattern="yyyy-MM-dd"></fmt:formatDate>">

    备注:<input type="text" name="mark" value="${vo.mark}"><br>

    <select name="rtype">
        <option value="">--请选择--</option>
        <option value="1" ${rtype==1?"selected":""}>制单人</option>
        <option value="2" ${rtype==2?"selected":""}>仓库</option>
        <option value="3" ${rtype==3?"selected":""}>库位</option>
        <option value="4" ${rtype==4?"selected":""}>订货人</option>
        <option value="5" ${rtype==5?"selected":""}>物流单号</option>
        <option value="6" ${rtype==6?"selected":""}>交货地点</option>
    </select>
    <input type="text" name="mohu" value="${vo.mohu}">

    <select name="mtype">
        <option value="">--请选择--</option>
        <option value="1" ${mtype==1?"selected":""}>总金额</option>
        <option value="2" ${mtype==2?"selected":""}>折让金额</option>
        <option value="3" ${mtype==3?"selected":""}>附件成本</option>
    </select>
    <input type="text" name="p1" value="${vo.p1}">至
    <input type="text" name="p2" value="${vo.p2}">
    <input type="button" onclick="goPage(1)" value="查询">
    <input type="button" onclick="toAdd()" value="添加">
</form>
<from>
<table class="table">
    <tr align="center">
        <td>下单时间</td>
        <td>订单编号</td>
        <td>制单人</td>
        <td>仓库</td>
        <td>库位</td>
        <td>订货人</td>
        <td>总金额</td>
        <td>折让金额</td>
        <td>交货方式</td>
        <td>物流单号</td>
        <td>附件成本</td>
        <td>交货地点</td>
    </tr>
    <c:forEach items="${info.list}" var="a">
        <tr align="center">
            <td>
                <fmt:formatDate value="${a.orderTime}" pattern="yyyy-MM-dd"></fmt:formatDate>
            </td>
            <td>${a.orderId}</td>
            <td>${a.single}</td>
            <td>${a.depot}</td>
            <td>${a.location}</td>
            <td>${a.orderer}</td>
            <td>${a.zmoney}</td>
            <td>${a.zrmoney}</td>
            <td>${a.deliveryType}</td>
            <td>${a.tackingNumber}</td>
            <td>${a.affixCost}</td>
            <td>${a.deliveryPoints}</td>
        </tr>
    </c:forEach>
</table>
    <jsp:include page="/resource/common/pages2.jsp"></jsp:include>
</from>
</body>
</html>